import { request } from "@/utils/request";

export const loginByPassword = (mobile:string, password:string) => {
  return request<User>('/login/password','POST',{mobile, password})
}

export const getUserInfo = () => {
  return request<UserInfo>('/patient/myUser','GET')
}

// 获取患者信息列表
export const getPatientList = () => {
  return request<PatientList>('/patient/mylist','GET')
}

// 添加患者
export const addPatient = (p:Patient) => {
  return request('/patient/add','POST',p)
}